package com.syj.collect.entry;

import android.os.Build;

import androidx.annotation.RequiresApi;

import com.syj.collect.base.BaseBean;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * created by XXX on 2021/3/6.
 */
public class TagAdapterData extends BaseBean implements Serializable {


    private List<WaterBean> data;

    public List<WaterBean> getData() {
        return data;
    }

    public void setData(List<WaterBean> data) {
        this.data = data;
    }

    public static class WaterBean {
        public String getLabel() {
            return label;
        }

        public void setLabel(String label) {
            this.label = label;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        public String getDictType() {
            return dictType;
        }

        public void setDictType(String dictType) {
            this.dictType = dictType;
        }

        public String getParentId() {
            return parentId;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }

        /**
         * label : 水面无垃圾
         * value : 1
         * dictType : 水质情况简述
         * parentId : 0
         */

        private String label;
        private String value;
        private String dictType;
        private String parentId;
        boolean ischeckd=false;

        public boolean isIscheckd() {
            return ischeckd;
        }

        public void setIscheckd(boolean ischeckd) {
            this.ischeckd = ischeckd;
        }

        @RequiresApi(api = Build.VERSION_CODES.KITKAT)
        @Override
        public boolean equals(Object o) {
       /* if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;*/
            WaterBean that = (WaterBean) o;
            return Objects.equals(value, that.value);

        }
    }

}

